/**
 * jims
 */
package com.jims.master.modules.nurse.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jims.master.common.persistence.DataEntity;

/**
 * 病人体征记录Entity
 * @author CTQ
 * @version 2017-06-01
 */
public class NurseVitalSignsRec extends DataEntity<NurseVitalSignsRec> {
	
	private static final long serialVersionUID = 1L;
	private String patientId;		// 病人标识号
	private String visitId;		// 病人本次住院标识
	private NurseTempInfo tempInfo;
	private Date recordingDate;		// 记录日期
	private Date timePoint;		// 时间点
	private NurseTempItemDict tempItem;		// 护理项目字典ID
	private String vitalSigns;		// 记录项目
	private Integer vitalSignsValues;		// 项目数值
	private String units;		// 项目单位s
	private String classCode;		// 类别代码
	private String vitalCode;		// 项目代码
	private Integer vitalSignsCvalues;		// 项目数值
	private String wardCode;		// 病区
	private String nurse;		// 护士
	
	public NurseVitalSignsRec() {
		super();
	}

	public NurseVitalSignsRec(String id){
		super(id);
	}

	@Length(min=1, max=64, message="病人标识号长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=64, message="病人本次住院标识长度必须介于 1 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRecordingDate() {
		return recordingDate;
	}

	public void setRecordingDate(Date recordingDate) {
		this.recordingDate = recordingDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getTimePoint() {
		return timePoint;
	}

	public void setTimePoint(Date timePoint) {
		this.timePoint = timePoint;
	}

	
	@Length(min=0, max=16, message="记录项目长度必须介于 0 和 16 之间")
	public String getVitalSigns() {
		return vitalSigns;
	}

	public void setVitalSigns(String vitalSigns) {
		this.vitalSigns = vitalSigns;
	}
	
	public Integer getVitalSignsValues() {
		return vitalSignsValues;
	}

	public void setVitalSignsValues(Integer vitalSignsValues) {
		this.vitalSignsValues = vitalSignsValues;
	}
	
	@Length(min=0, max=8, message="项目单位长度必须介于 0 和 8 之间")
	public String getUnits() {
		return units;
	}

	public void setUnits(String units) {
		this.units = units;
	}

	@Length(min=1, max=10, message="类别代码长度必须介于 1 和 10 之间")
	public String getClassCode() {
		return classCode;
	}

	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}

	@Length(min=1, max=4, message="项目代码长度必须介于 1 和 4 之间")
	public String getVitalCode() {
		return vitalCode;
	}

	public void setVitalCode(String vitalCode) {
		this.vitalCode = vitalCode;
	}
	
	public Integer getVitalSignsCvalues() {
		return vitalSignsCvalues;
	}

	public void setVitalSignsCvalues(Integer vitalSignsCvalues) {
		this.vitalSignsCvalues = vitalSignsCvalues;
	}
	
	@Length(min=0, max=64, message="病区长度必须介于 0 和 64 之间")
	public String getWardCode() {
		return wardCode;
	}

	public void setWardCode(String wardCode) {
		this.wardCode = wardCode;
	}
	
	@Length(min=0, max=64, message="护士长度必须介于 0 和 64 之间")
	public String getNurse() {
		return nurse;
	}

	public void setNurse(String nurse) {
		this.nurse = nurse;
	}

	public NurseTempItemDict getTempItem() {
		return tempItem;
	}

	public void setTempItem(NurseTempItemDict tempItem) {
		this.tempItem = tempItem;
	}

	public NurseTempInfo getTempInfo() {
		return tempInfo;
	}

	public void setTempInfo(NurseTempInfo tempInfo) {
		this.tempInfo = tempInfo;
	}
}